<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>系统资源添加页面</title>
<script type="text/javascript" src="${path}/js/scripts/bootstart.js"></script>
<link rel="stylesheet" type="text/css" href="${path}/css/focus.css" />
</head>
<body>
	<form id="roleForm" method="post">
		<input name="organId" class="mini-hidden" id="organId"/>
		<div class="form_nav">
			<table width="100%" cellpadding="4" cellspacing="0">
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>机构名称:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="organName" class="mini-textbox" required="true"
						style="width: 90%;"/></td>
				</tr>
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>机构类别:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="organType" class="mini-textbox" required="true"
						style="width: 90%;"/></td>
				</tr>
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>负责人:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="organPerson" class="mini-textbox" required="true"
						style="width: 90%;"/></td>
				</tr>
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>人数:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="number" class="mini-textbox" required="true"
						style="width: 90%; margin: "/></td>
				</tr>
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>成立时间:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="formTime" class="mini-textbox" required="true"
						style="width: 90%;"/></td>
				</tr>
				<tr>
					<td width="20%" height="30" class="xx_bt nonebor"><span
						class="required_cls">*</span>变更情况:</td>
					<td width="80%" height="30" class="xx_type  nonebor"><input
						name="recordChange" class="mini-textbox" required="true"
						style="width: 90%;"/></td>
				</tr>
			</table>
		</div>
		<div style="text-align: center; padding: 10px;">
			<a class="mini-button" onclick="roleform.saveData" id="sub_button"
				style="width: 60px; margin-right: 20px;">保存</a> <a
				class="mini-button" onclick="$.form.onCancel()" style="width: 60px;">取消</a>
		</div>
	</form>
</body>
<script type="text/javascript" src="${path}/js/scripts/dataform.js"></script>
<script type="text/javascript">
	$(function() {
		$.form.init(); //初始化表单
		window.roleform = {};
		roleform.saveData = function() {
			var form = new mini.Form("#roleForm");
			form.validate();
			if (form.isValid() == false) {
				return;
			}
			mini.get("sub_button").disable();
			$.form.saveData({
				url : "${path}/mgr/organ/addObj",
				showMsg : true,//是否显示提示信息（返回参数必须是msg，json类型数据）
				id : "roleForm"
			});
		};
	});
	
	//页面初始化时，执行该函数资源类型
	window.onload = function() {
		mini.get("organId").setValue("${param.organId}");
	};
</script>
</html>
